package com.tcfvic.client.pojos;
// Generated 29/03/2010 9:10:02 PM by Hibernate Tools 3.1.0.beta4

import java.util.HashSet;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;


/**
 * Rto generated by hbm2java
 */
@Entity
@Table(name="rto"
    
, uniqueConstraints = {  }
)

public class Rto  implements java.io.Serializable {


    // Fields    

     private int id;
     private String name;
     private String contactName;
     private String contactDetails;
     private String notes;
     private String contactPosition;
     private String position;
     private String tel1;
     private String tel2;
     private String rtoFax;
     private String rtoPhone;
     private String email;
     private String street1;
     private String street2;
     private String suburb;
     private String state;
     private String postcode;
     private String campus;
     private String display;
     private String website;
     private Set<Personcourse> personcourses = new HashSet<Personcourse>(0);
     private Set<Course> courses = new HashSet<Course>(0);


    // Constructors

    /** default constructor */
    public Rto() {
    }

	/** minimal constructor */
    public Rto(int id) {
        this.id = id;
    }
    
    /** full constructor */
    public Rto(int id, String name, String contactName, String contactDetails, String notes, String contactPosition, String tel1, String tel2, String email, String street1, String street2, String suburb, String state, String postcode, String campus, String display, Set<Personcourse> personcourses, Set<Course> courses, String position, String rtoFax, String rtoPhone) {
        this.id = id;
        this.name = name;
        this.contactName = contactName;
        this.contactDetails = contactDetails;
        this.notes = notes;
        this.contactPosition = contactPosition;
        this.tel1 = tel1;
        this.tel2 = tel2;
        this.email = email;
        this.street1 = street1;
        this.street2 = street2;
        this.suburb = suburb;
        this.state = state;
        this.postcode = postcode;
        this.campus = campus;
        this.display = display;
        this.personcourses = personcourses;
        this.courses = courses;
        this.position = position;
        this.rtoFax = rtoFax;
        this.rtoPhone = rtoPhone;
    }
    

   
    // Property accessors
    @Id
    @Column(name="id", unique=true, nullable=false, insertable=true, updatable=true)
@GeneratedValue(strategy=GenerationType.AUTO)

    public int getId() {
        return this.id;
    }
    
    public void setId(int id) {
        this.id = id;
    }
    @Column(name="name", unique=false, nullable=true, insertable=true, updatable=true, length=450)

    public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    @Column(name="contactName", unique=false, nullable=true, insertable=true, updatable=true, length=100)

    public String getContactName() {
        return this.contactName;
    }
    
    public void setContactName(String contactName) {
        this.contactName = contactName;
    }
    @Column(name="contactDetails", unique=false, nullable=true, insertable=true, updatable=true, length=1000)

    public String getContactDetails() {
        return this.contactDetails;
    }
    
    public void setContactDetails(String contactDetails) {
        this.contactDetails = contactDetails;
    }
    @Column(name="notes", unique=false, nullable=true, insertable=true, updatable=true, length=1000)

    public String getNotes() {
        return this.notes;
    }
    
    public void setNotes(String notes) {
        this.notes = notes;
    }
    @Column(name="contactPosition", unique=false, nullable=true, insertable=true, updatable=true, length=100)

    public String getContactPosition() {
        return this.contactPosition;
    }
    
    public void setContactPosition(String contactPosition) {
        this.contactPosition = contactPosition;
    }
//    @Column(name="position", unique=false, nullable=true, insertable=true, updatable=true, length=100)
//    
//    public String getPosition() {
//    	return this.position;
//    }
//    
//    public void setPosition(String position) {
//    	this.position = position;
//    }
    @Column(name="tel1", unique=false, nullable=true, insertable=true, updatable=true, length=45)

    public String getTel1() {
        return this.tel1;
    }
    
    public void setTel1(String tel1) {
        this.tel1 = tel1;
    }
    @Column(name="rtoFax", unique=false, nullable=true, insertable=true, updatable=true, length=100)
    
    public String getRtoFax() {
    	return this.rtoFax;
    }
    
    public void setRtoFax(String rtoFax) {
    	this.rtoFax = rtoFax;
    }
    @Column(name="rtoPhone", unique=false, nullable=true, insertable=true, updatable=true, length=100)
    
    public String getRtoPhone() {
    	return this.rtoPhone;
    }
    
    public void setRtoPhone(String rtoPhone) {
    	this.rtoPhone = rtoPhone;
    }
    @Column(name="tel2", unique=false, nullable=true, insertable=true, updatable=true, length=45)

    public String getTel2() {
        return this.tel2;
    }
    
    public void setTel2(String tel2) {
        this.tel2 = tel2;
    }
    @Column(name="email", unique=false, nullable=true, insertable=true, updatable=true, length=1000)

    public String getEmail() {
        return this.email;
    }
    
    public void setEmail(String email) {
        this.email = email;
    }
    @Column(name="street1", unique=false, nullable=true, insertable=true, updatable=true, length=450)

    public String getStreet1() {
        return this.street1;
    }
    
    public void setStreet1(String street1) {
        this.street1 = street1;
    }
    @Column(name="street2", unique=false, nullable=true, insertable=true, updatable=true, length=450)

    public String getStreet2() {
        return this.street2;
    }
    
    public void setStreet2(String street2) {
        this.street2 = street2;
    }
    @Column(name="suburb", unique=false, nullable=true, insertable=true, updatable=true, length=450)

    public String getSuburb() {
        return this.suburb;
    }
    
    public void setSuburb(String suburb) {
        this.suburb = suburb;
    }
    @Column(name="state", unique=false, nullable=true, insertable=true, updatable=true, length=10)

    public String getState() {
        return this.state;
    }
    
    public void setState(String state) {
        this.state = state;
    }
    @Column(name="postcode", unique=false, nullable=true, insertable=true, updatable=true, length=5)

    public String getPostcode() {
        return this.postcode;
    }
    
    public void setPostcode(String postcode) {
        this.postcode = postcode;
    }
    @Column(name="campus", unique=false, nullable=true, insertable=true, updatable=true, length=450)

    public String getCampus() {
        return this.campus;
    }
    
    public void setCampus(String campus) {
        this.campus = campus;
    }
    @OneToMany(cascade={CascadeType.ALL}, fetch=FetchType.LAZY, mappedBy="rto")

    public Set<Personcourse> getPersoncourses() {
        return this.personcourses;
    }
    
    public void setPersoncourses(Set<Personcourse> personcourses) {
        this.personcourses = personcourses;
    }
    @OneToMany(cascade={CascadeType.ALL}, fetch=FetchType.LAZY, mappedBy="rto")

    public Set<Course> getCourses() {
        return this.courses;
    }
    
    public void setCourses(Set<Course> courses) {
        this.courses = courses;
    }
   

	public void setDisplay(String display) {
		this.display = display;
	}

    @Column(name="display", unique=false, nullable=true, insertable=true, updatable=true, length=100)
	public String getDisplay() {
		return display;
	}


    public void setWebsite(String website) {
    	this.website = website;
    }
    
    @Column(name="website", unique=false, nullable=true, insertable=true, updatable=true, length=1000)
    public String getWebsite() {
    	return website;
    }
}
